package com.yu.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;


public class Log implements MethodBeforeAdvice {

    /**
     *
     * @param method :要执行的目标方法对象
     * @param args :参数
     * @param target :目标对象
     * @throws Throwable
     */

    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(target.getClass().getName()+"的"+method.getName()+"被执行了");
    }
}
